<?php
include ("conexion.php"); 	
?>


<script type="text/javascript">

var patron = new Array(2,2,4)

function mascara(d,sep,pat,nums){
if(d.valant != d.value){
	val = d.value
	largo = val.length
	val = val.split(sep)
	val2 = ''
	for(r=0;r<val.length;r++){
		val2 += val[r]	
	}
	if(nums){
		for(z=0;z<val2.length;z++){
			if(isNaN(val2.charAt(z))){
				letra = new RegExp(val2.charAt(z),"g")
				val2 = val2.replace(letra,"")
			}
		}
	}
	val = ''
	val3 = new Array()
	for(s=0; s<pat.length; s++){
		val3[s] = val2.substring(0,pat[s])
		val2 = val2.substr(pat[s])
	}
	for(q=0;q<val3.length; q++){
		if(q ==0){
			val = val3[q]
		}
		else{
			if(val3[q] != ""){
				val += sep + val3[q]
				}
		}
	}
	d.value = val
	d.valant = val
	}
}
</script>

<html>
	<head>
		<title>Recuperar Datos</title>
		<link rel="stylesheet" type="text/css" href="media/css/recuperar_datos.css" />
		<meta charset="UTF-8"/>
	</head>
	
<body>
	
<script>
function justNumbers(e) {
var keynum = window.event ? window.event.keyCode : e.which;
if ( keynum == 8 ) return true;
return /\d/.test(String.fromCharCode(keynum));
}
</script>	

		<div class="cuadro">	
			<div class="tabla">	
					    <img class="sedole" src="media/imagen/sedole1.jpg" />
						<img class="encabezado" src="media/imagen/logo_mpps.png" />
						<a href="pagina_principal.php"><img class="i_mensaje" src="media/imagen/regresar.png" onmouseover="this.src='media/imagen/regresar2.png';" onmouseout="this.src='media/imagen/regresar.png';"/></a>											
						<a href="pagina_principal.php"><img class="i_mensaje" src="media/imagen/inicio.png" onmouseover="this.src='media/imagen/inicio2.png';"onmouseout="this.src='media/imagen/inicio.png';"/></a>
			<div class="menu">
			<form method="post" action="recuperar_datos_vari_u.php">							 	 		
					<center><label class="label2"  for="Forma_pago">Forma de Pago</label>
	 				<select class="select" name="forma_pago" required="" >
						<option value="">Seleccione Form-pago</option>	    
	 					<option value="1">DEPOSITO</option>	 
	 					<option value="2">CHEQUE</option>	 
					</select>   
	 			       	    	    
	 			    <label class="label" for="Nro_cuenta">N&uacute;mero de Cuenta</label>
	 			    <input class="texto" type="text" name="cuenta_nomina" onkeypress="return justNumbers(event);" maxlength="20"  required="" placeholder="Ingrese Nro de Cta-Nomina"/><br>
	 			    
	 			     <label class="label" for="fecha_ingreso">Fecha de Ingreso</label>
	 			    <input class="texto" required="" type="text" name="fecha_ingreso" onkeyup="mascara(this,'-',patron,true)"maxlength="10" placeholder="dd-mm-aaaa"/></center>
	 	
 														
					<center><input class="boton" type="submit"name="botton"value="Aceptar"/></center>
					      	
			    </div>	
			    </form>	
			    				    	
			    	<div class="forma">
					<center><div class="etiqueta" for="Recuperar Datos">Recuperar Datos</label></div></center>
					</div>     	
			</div>  
		</div>  	
	      	</body>
	
</html>
